package com.chalk.service;


import com.alipay.api.AlipayApiException;
//import com.chalk.model.Withdrawal;
import com.chalk.vo.AliPayVo;
import com.chalk.vo.Refund;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  创建支付订单
 * </p>
 *
 * @author glq
 * @since 2020-09-17
 */

public interface AlipayService {

        /**
        * 创建支付订单
        */
        public Map<String,String> aliPay(AliPayVo aliPayVo);

        //统一收单线下交易查询,传入商户订单号
        public String  transactionFind(String outTradeNo) throws AlipayApiException;

        //统一收单交易退款接口，传入商户订单号，退款金额
        public List<Refund> refund(AliPayVo aliPayVo) throws AlipayApiException;

        //转账接口
       // public String transfer(Withdrawal withdrawal)throws  AlipayApiException;

}
